#include "BaseElement.h"

#include <typeinfo>

BaseElement::BaseElement(size_t dimen)
{
	m_Dimen = dimen;
}

BaseElement::~BaseElement()
{

}

int BaseElement::getDimen() const
{
	return m_Dimen;
}

bool BaseElement::typeIsMatch( const BaseElement &rightValue) const
{
#ifdef FILED_ELEMENT_TYPE_CHECK
	if( typeid( *this) == typeid( rightValue ) && 
		getDimen() == rightValue.getDimen())
	{
		return true;
	}
	return false;
#else
	return true;
#endif
}